package com.QK.cnstudy.entity;

import android.database.Cursor;

public class Term {
    private int id;
    private String name;

    public void setInfoFromCursor(Cursor cursor) {
        int tmp;
        if ((tmp = cursor.getColumnIndex("id")) != -1) {
            setId(cursor.getInt(tmp));
        }
        if ((tmp = cursor.getColumnIndex("name")) != -1) {
            setName(cursor.getString(tmp));
        }
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

}
